SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 39417: PATHNAME function not working as documented in SAS® 9 and above

DetailsAboutRate It

The PATHNAME function does not return the correct results when the search-ref option is NOT used.

Here is what is stated in the online documentation.

If you do not specify a search-ref argument, and the name of a fileref is identical to the name of a libref, PATHNAME searches first for a fileref.

It was discovered that in previous releases the function was not returning the same default results as it was in SCL. Development changed the behavior to be the same as the SCL version of the function, and have requested that the documentation be changed.

The workaround is to use the search-ref option.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows Server 2003 Enterprise 64-bit Edition9 TS M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9 TS M09.3 TS1M0
z/OS9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9 TS M09.3 TS1M0
Microsoft Windows XP Professional9 TS M09.3 TS1M0
64-bit Enabled AIX9 TS M09.3 TS1M0
64-bit Enabled HP-UX9 TS M09.3 TS1M0
64-bit Enabled Solaris9 TS M09.3 TS1M0
HP-UX IPF9 TS M09.3 TS1M0
Linux9 TS M09.3 TS1M0
OpenVMS Alpha9 TS M09.3 TS1M0
Tru64 UNIX9 TS M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.